﻿using Microsoft.IdentityModel.Protocols;
using ZilLion.Service.Core.CRMUnities.Config;
using ZL.Web.Utility.Http;
using ZLWeb.WebApiEntityBase;

namespace WeChatCardProxy.WebApiControllers
{
    public class ServiceBase
    {
        public static string _appId = string.Empty;
        public static string _appSecret = string.Empty;
        protected static readonly string WeiXinTokenserver;
        static ServiceBase()
        {
            WeiXinTokenserver = ConfigurationManager.AppSettings["WeiXinTokenserver"];
        }

        protected static readonly IdentityEntity Identity = new IdentityEntity
        {
            ClientName = "WeChatCard",
            ClientVersion = "20141117",
            RandomCode = "001"
        };

        protected readonly IHttpClient httpClient = new HttpNoCompressionClient(); //没有压缩
    }
}
